home *** CD-ROM | disk | FTP | other *** search
/ New Masters of Flash / New Masters of Flash.iso / pc / MOVIES / 03.dir / 00108_Text_108.txt < prev    next >
Text File  |  2000-09-30  |  591b  |  17 lines

  1. To give it a more natural behaviour I also used the ΓÇÿy2ΓÇÖ-Variable to set the X-scale of the flashlight. 
  2. Set Property ("/light2/light", X Scale) = 100-(y2/5)
  3. The whole Action-script to move and alter the flashlight is now:
  4. x1 = getProperty("/light2", _x);
  5. y1 = getProperty("/light2", _y);
  6. x2 = int((x1-380)/4.22);
  7. y2 = int((y1-300)*-0.8);
  8. if (y2<100)  {
  9.    y2 = 100;
  10. }
  11. setProperty ("/light2/light", _rotation, x2);
  12. setProperty ("/light2/light", _yscale y2);
  13. setProperty ("/light2/light", _xscale, 100-(y2/5));
  14. setProperty ("/switch/case", _rotation, int((x2*-0.7))=67)
  15.  
  16.  
  17.